/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.onlyxiahui.framework.net.handler.data.bean;

import com.onlyxiahui.framework.net.handler.data.action.DataBackAction;

/**
 * 2013-9-6 10:59:43<br>
 * 已发送等待处理的消息
 * 
 * @author XiaHui
 */
public class HandleData {

	private String key;
	private Object data;
	private DataBackAction dataBackAction;
	private long sendTimestamp;

	public HandleData() {
	}

	public HandleData(Object data) {
		this.data = data;
	}

	public HandleData(String key, Object data) {
		this.key = key;
		this.data = data;
	}

	public HandleData(String key, Object data, DataBackAction dataBackAction) {
		this.key = key;
		this.data = data;
		this.dataBackAction = dataBackAction;
	}

	public boolean hasKey() {
		return null != key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public DataBackAction getDataBackAction() {
		return dataBackAction;
	}

	public void setDataBackAction(DataBackAction dataBackAction) {
		this.dataBackAction = dataBackAction;
	}

	public long getSendTimestamp() {
		return sendTimestamp;
	}

	public void setSendTimestamp(long sendTimestamp) {
		this.sendTimestamp = sendTimestamp;
	}
}
